﻿@{
    string pointId = ViewBag.pointId;
}
<div class="module-container">
    <div class="search-panel">
        <form class="form-inline search-table">
            @*<div class="form-group">
                <input class="form-control w250px" name="name" type="text"
                       placeholder="请输入名称/简拼查询">
            </div>*@
            <div class="form-group">
                <input class="form-control w150px" name="name" type="text"
                       placeholder="请输入车牌号码/司机姓名">
            </div>
            @*<div class="form-group">
                <input class="form-control w150px" name="DriverName" type="text"
                       placeholder="请输入司机姓名">
            </div>*@
            <div class="form-group">
                <select class="form-control uiselect uiselectsubmit"  name="Station"
                        data-has-text-field="false"
                        data-width="150">
                    @Html.EmptyOption("客运站")
                    @Html.StationCategoryOption()
                </select>
            </div>
            <div class="form-group">
                <select class="form-control uiselect uiselectsubmit" name="PointId"
                        data-has-text-field="false"
                        data-width="100">
                    @Html.CheckPointsCategoryOption()
                </select>
            </div>
            <div class="form-group">
                <select class="form-control uiselect uiselectsubmit" name="CheckStatusName"
                        data-has-text-field="false"
                        data-width="100">
                    @Html.EmptyOption("稽查状态")
                    @Html.CheckStatusCategoryOption()
                </select>
            </div>
            <div class="form-group">
                <div class="input-group date w165px uidate">
                    <input class="form-control" name="startDate" type="text" placeholder="请选择开始日期">
                    <span class="input-group-addon">
                        <i class="glyphicon glyphicon-th"></i>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <div class="input-group date w165px uidate">
                    <input class="form-control" name="endDate" type="text" placeholder="请选择结束日期">
                    <span class="input-group-addon">
                        <i class="glyphicon glyphicon-th"></i>
                    </span>
                </div>
            </div>
            <button class="btn btn-primary" type="submit">
                <i class="fa fa-search"></i> 查询
            </button>

            <a class="btn btn-success uimodal" data-url="@Url.Action("Create")">
                <i class="fa fa-plus"></i> 登记
            </a>

            @*<a class="btn btn-danger tmdelete" data-table=".uitable" data-url="@Url.Action("Delete")">
                <i class="fa fa-trash-o"></i> 删除
            </a>*@
            
            <a id="ManualRegemp_export" class="btn btn-default" data-url="@Url.Action("Export")">
                <i class="fa fa-share-square-o"></i> 导出
            </a>

        </form>
    </div>
    <div class="uitable" data-url="@Url.Action("Grid",new { PointId= pointId })">
        @Html.Action("Grid", new { PointId = pointId })
    </div>
</div>
<script>

    $('#ManualRegemp_export').on('click', function () {
        var url = $(this).data('url') + '?' + $.param(fx.serializeForm($('.search-table')));
        window.location.href = url;
    });

</script>